package com.project.bean;

import java.time.LocalDate;

public class FacilityBean {
    /**设施编号*/
    private int facilityId;
    /**报损日期*/
    private LocalDate damageTime = LocalDate.now();
    /**是否解决*/
    private String isSolve = "未解决";
    /**设施损坏描述*/
    private String describe;
    /**所在房间*/
    private RoomBean roomBean;

    public FacilityBean() {
    }

    public FacilityBean( String describe, int rooId) {
        this.describe = describe;
        this.roomBean = new RoomBean();
        roomBean.setRoomId(rooId);
    }

    public FacilityBean(String describe) {
        this.describe = describe;
    }

    public int getFacilityId() {
        return facilityId;
    }

    public void setFacilityId(int facilityId) {
        this.facilityId = facilityId;
    }

    public LocalDate getDamageTime() {
        return damageTime;
    }

    public void setDamageTime(LocalDate damageTime) {
        this.damageTime = damageTime;
    }

    public String getIsSolve() {
        return isSolve;
    }

    public void setIsSolve(String isSolve) {
        this.isSolve = isSolve;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public RoomBean getRoomBean() {
        return roomBean;
    }

    public void setRoomBean(RoomBean roomBean) {
        this.roomBean = roomBean;
    }

    @Override
    public String toString() {
        return "FacilityBean{" +
                "facilityId=" + facilityId +
                ", damageTime=" + damageTime +
                ", isSolve='" + isSolve + '\'' +
                ", describe='" + describe + '\'' +
                ", roomBean=" + roomBean +
                '}'+"\n";
    }
}
